package com.dormitory123.millet.dao;

import com.dormitory123.millet.pojo.User;

/**
 * @author yanhuanzhan
 * @date 2021/12/26 - 17:58
 */
public interface UserDao {
    public User queryUserByUserName(String userName);
    public User queryUserByUserNameAndPassword(String userName,String password);
    /**
     *
     * @param user
     * @return 返回-1表示操作失败，其他表示影响的行数
     */
    public int saveUser(User user);
}
